package pattern10.boss;

/**
 * 解耦抽象的观察者
 * @author wdl
 */
public abstract class BaseObserver {
    protected String name;
    protected ISubject sub;
    public BaseObserver(String name,ISubject sub){
        this.name=name;
        this.sub=sub;
    }

    abstract void update();
}
